package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 自定义任务类
 * @Author: XJH
 * @Description: TODO
 * @Date: 2025/6/10 19:14
 * @Version: 1.0
 */
@Slf4j
@Component
public class MyTask {
    //@Scheduled(cron = "0/2 * * * * ?")
    public void task1() {
        log.info("task1:{}",new Date());
    }
}
